package com.xw.service;

import com.xw.entity.News;

import java.util.List;
/**
 * @Description: TODO
 * @Date: 2024/12/18 16:52
 * @Version: 1.0
 * @author 86151
 */
public interface NewsService {
    boolean publishNews(News news);
    boolean deleteNews(Integer id);
    boolean updateNews(News news);

    News getNewsById(Integer id);

    List<News> getAllNews();
    List<News> searchNewsByKeywords(String keywords);
}
